home *** CD-ROM | disk | FTP | other *** search
/ PC User 2004 November / PCU1104CD1.iso / resource / design / files / advefft.exe / {app} / templates / flashinglightsmessage.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2004-04-29  |  1.5 KB  |  54 lines

  1. debug = 0;
  2. if(0 < debug)
  3. {
  4.    movx = 300;
  5.    movy = 300;
  6.    var texts = new String("This is|STARTEXT|text effect|");
  7.    var urls = new String("http://www.site1.com|http://www.site2.com|http://www.site3.com|http://www.site4.com|");
  8.    tcol = 16711680;
  9.    ax = 20;
  10.    ay = 20;
  11.    fpoints = 6;
  12.    flights = 4;
  13.    lightcolor = 16711935;
  14.    tpause = 300;
  15.    target = "_blank";
  16. }
  17. else
  18. {
  19.    var movx = parseInt("330",10);
  20.    var movy = parseInt("330",10);
  21.    var texts = "Impress your visitors|FlashingLightsMessage|Get this applet for FREE!|";
  22.    var urls = "http://www.effectmaker.com/clickpage.html|http://www.effectmaker.com/clickpage.html|http://www.effectmaker.com/clickpage.html|";
  23.    var tcol = parseInt("255",10);
  24.    var ax = parseInt("20",10);
  25.    var ay = parseInt("20",10);
  26.    var fpoints = parseInt("6",10);
  27.    var flights = parseInt("4",10);
  28.    var lightcolor = parseInt("255",10);
  29.    var tpause = parseInt("400",10);
  30.    var target = "_blank";
  31. }
  32. ii = 0;
  33. myp = 0;
  34. var texts = texts.split("|");
  35. var urls = urls.split("|");
  36. maxitems = texts.length;
  37. moviearea._width = movx;
  38. moviearea._height = movy;
  39. moviearea._visible = true;
  40. tpause = int(tpause * 12 / 100);
  41. if(tpause % 2 == 1)
  42. {
  43.    tpause++;
  44. }
  45. var today = new Date();
  46. set("lights.width",movx);
  47. set("lights.height",movy);
  48. set("lights.ax",ax);
  49. set("lights.ay",ay);
  50. set("lights.fpoints",fpoints);
  51. set("lights.flights",flights);
  52. set("lights.lightcolor",lightcolor);
  53. lights.gotoAndPlay(2);
  54.